package singleton.lazy;

/**
 * 同步延迟加载
 */
public class Singleton7 {
    private Singleton7(){}
    private static Singleton7 instance;

    public static synchronized  Singleton7 getInstance() {
        if(null == instance) {
            instance = new Singleton7();
        }
        return instance;
    }
}
